package com.wsfk.ssm.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 客户端更新列表中使用
 * @author zhangbao
 *
 */
public class BookInfo {

	private String id;//手册id
	private String name;//手册名字
	private String icon;//icon的url
	private String zip;//手册的zip下载地址
	private String towCode;//二维码下载地址
	private String downnum;//下载码
	private String version;//版本
	private String createState;//创建状态
	private String publishState;//发布状态
	private String stopDateString;//停止时间 字符串形式yyyy-MM-dd HH:mm:ss
	private Date stopDate;//结束时间
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getZip() {
		return zip;
	}
	public void setZip(String zip) {
		this.zip = zip;
	}
	public String getTowCode() {
		return towCode;
	}
	public void setTowCode(String towCode) {
		this.towCode = towCode;
	}
	public String getDownnum() {
		return downnum;
	}
	public void setDownnum(String downnum) {
		this.downnum = downnum;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getCreateState() {
		return createState;
	}
	public void setCreateState(String createState) {
		this.createState = createState;
	}
	public String getPublishState() {
		return publishState;
	}
	public void setPublishState(String publishState) {
		this.publishState = publishState;
	}
	public Date getStopDate() {
		return stopDate;
	}
	public void setStopDate(Date stopDate) {
		SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		stopDateString =sdf.format(stopDate);
		this.stopDate = stopDate;
	}
	public String getStopDateString() {
		return stopDateString;
	}
	public void setStopDateString(String stopDateString) {
		
		this.stopDateString = stopDateString;
	}
	
}
